<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>EOS.IO: contracts/eoslib/action.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="eos-logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">EOS.IO
   &#160;<span id="projectnumber">DAWN3.0.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_ae9b15dd87e066e1908bbd90e8f38627.html">contracts</a></li><li class="navelem"><a class="el" href="dir_3fea0bf1ce879ce73e6ecec98007efcd.html">eoslib</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">action.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="action_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="action_8h.html">eoslib/action.h</a>&gt;</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="raw_8hpp.html">eoslib/raw.hpp</a>&gt;</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceeosio.html">eosio</a> {</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="group__actioncppapi.html#gacc8aeec52cf63058dc2b3cc44ac7495a">   39</a></span>&#160;   T <a class="code" href="group__actioncppapi.html#gacc8aeec52cf63058dc2b3cc44ac7495a">current_action</a>() {</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;      T value;</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;      <span class="keyword">auto</span> read = <a class="code" href="group__actioncapi.html#gaaa8e07b94cea97bd0b6bef4c7cf64422">read_action</a>( &amp;value, <span class="keyword">sizeof</span>(value) );</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;      <a class="code" href="group__systemcapi.html#gae2a6ebaf48fe7c69f847ae18f109d09a">assert</a>( read &gt;= <span class="keyword">sizeof</span>(value), <span class="stringliteral">&quot;action shorter than expected&quot;</span> );</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;      <span class="keywordflow">return</span> value;</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;   }</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;   <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="group__actioncppapi.html#ga262f69cf199078188ece68da422c9987">   47</a></span>&#160;   T <a class="code" href="group__actioncppapi.html#ga262f69cf199078188ece68da422c9987">unpack_action</a>() {</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;      <span class="keywordtype">char</span> buffer[<a class="code" href="group__actioncapi.html#gadd0552a97de236e0c7af3ef2dd909c2a">action_size</a>()];</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;      <a class="code" href="group__actioncapi.html#gaaa8e07b94cea97bd0b6bef4c7cf64422">read_action</a>( buffer, <span class="keyword">sizeof</span>(buffer) );</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;      <span class="keywordflow">return</span> raw::unpack&lt;T&gt;( buffer, <span class="keyword">sizeof</span>(buffer) );</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;   }</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;   <a class="code" href="group__actioncapi.html#gab1e668e93ac1f94421743ed79edffb26">using ::require_auth</a>;</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;   <a class="code" href="group__actioncapi.html#gae232893c733f02b94dbb70fae39d19f7">using ::require_recipient</a>;</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;   <span class="keyword">template</span>&lt;<span class="keyword">typename</span>... <a class="code" href="namespacedice.html#ac6fcf433d5a29141110b932a34f28383">accounts</a>&gt;</div><div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="group__actioncppapi.html#ga8d2d8ca22e484fab7dbfe99cc8564e04">   72</a></span>&#160;   <span class="keywordtype">void</span> <a class="code" href="group__actioncppapi.html#ga8d2d8ca22e484fab7dbfe99cc8564e04">require_recipient</a>( <a class="code" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a> <a class="code" href="structeosio_1_1name.html">name</a>, <a class="code" href="namespacedice.html#ac6fcf433d5a29141110b932a34f28383">accounts</a>... remaining_accounts ){</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;      <a class="code" href="group__actioncppapi.html#ga8d2d8ca22e484fab7dbfe99cc8564e04">require_recipient</a>( name );</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;      <a class="code" href="group__actioncppapi.html#ga8d2d8ca22e484fab7dbfe99cc8564e04">require_recipient</a>( remaining_accounts... );</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;   }</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;</div><div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="structeosio_1_1permission__level.html">   77</a></span>&#160;   <span class="keyword">struct </span><a class="code" href="structeosio_1_1permission__level.html">permission_level</a> {</div><div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="structeosio_1_1permission__level.html#a546e2f82b781fb528a31e5581a31b673">   78</a></span>&#160;      <a class="code" href="structeosio_1_1permission__level.html#a546e2f82b781fb528a31e5581a31b673">permission_level</a>( <a class="code" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a> a, <a class="code" href="group__types.html#ga4a16baef1413dc2ec44666f6cc85adb1">permission_name</a> p ):<a class="code" href="structeosio_1_1permission__level.html#aebfedbe1dd4d2f2836d8851ef510af59">actor</a>(a),<a class="code" href="structeosio_1_1permission__level.html#a60acff25628eb7c1bdfe2ca17c3ec112">permission</a>(p){}</div><div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="structeosio_1_1permission__level.html#a80e38737c6e727a27e9ff7a195f74d5d">   79</a></span>&#160;      <a class="code" href="structeosio_1_1permission__level.html#a80e38737c6e727a27e9ff7a195f74d5d">permission_level</a>(){}</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;</div><div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="structeosio_1_1permission__level.html#aebfedbe1dd4d2f2836d8851ef510af59">   81</a></span>&#160;      <a class="code" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a>    <a class="code" href="structeosio_1_1permission__level.html#aebfedbe1dd4d2f2836d8851ef510af59">actor</a>;</div><div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="structeosio_1_1permission__level.html#a60acff25628eb7c1bdfe2ca17c3ec112">   82</a></span>&#160;      <a class="code" href="group__types.html#ga4a16baef1413dc2ec44666f6cc85adb1">permission_name</a> <a class="code" href="structeosio_1_1permission__level.html#a60acff25628eb7c1bdfe2ca17c3ec112">permission</a>;</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;      <span class="keyword">template</span>&lt;<span class="keyword">typename</span> DataStream&gt;</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;</div><div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="structeosio_1_1permission__level.html#a6f54c5a0770819eb7575df7810b3535d">   85</a></span>&#160;      <span class="keyword">friend</span> DataStream&amp; <a class="code" href="structeosio_1_1permission__level.html#a6f54c5a0770819eb7575df7810b3535d">operator &lt;&lt; </a>( DataStream&amp; ds, <span class="keyword">const</span> <a class="code" href="structeosio_1_1permission__level.html">permission_level</a>&amp; a ){</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;         <span class="keywordflow">return</span> ds &lt;&lt; a.<a class="code" href="structeosio_1_1permission__level.html#aebfedbe1dd4d2f2836d8851ef510af59">actor</a> &lt;&lt; a.<a class="code" href="structeosio_1_1permission__level.html#a60acff25628eb7c1bdfe2ca17c3ec112">permission</a>;</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;      }</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;      <span class="keyword">template</span>&lt;<span class="keyword">typename</span> DataStream&gt;</div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="structeosio_1_1permission__level.html#afed7f46182bb7f971ee4591be314224b">   90</a></span>&#160;      <span class="keyword">friend</span> DataStream&amp; <a class="code" href="structeosio_1_1permission__level.html#afed7f46182bb7f971ee4591be314224b">operator &gt;&gt; </a>( DataStream&amp; ds,  <a class="code" href="structeosio_1_1permission__level.html">permission_level</a>&amp; a ){</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;         <span class="keywordflow">return</span> ds &gt;&gt; a.<a class="code" href="structeosio_1_1permission__level.html#aebfedbe1dd4d2f2836d8851ef510af59">actor</a> &gt;&gt; a.<a class="code" href="structeosio_1_1permission__level.html#a60acff25628eb7c1bdfe2ca17c3ec112">permission</a>;</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;      }</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;   };</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;</div><div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="structeosio_1_1action.html">  100</a></span>&#160;   <span class="keyword">struct </span><a class="code" href="structeosio_1_1action.html">action</a> {</div><div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="structeosio_1_1action.html#a0294f981aa61b546ea82785af0a4a043">  101</a></span>&#160;      <a class="code" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a>               <a class="code" href="structeosio_1_1action.html#a0294f981aa61b546ea82785af0a4a043">account</a>;</div><div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="structeosio_1_1action.html#a70afd7e77ad5c1b61a0bb8c748962015">  102</a></span>&#160;      <a class="code" href="group__types.html#gab0390a1836d20bbbb735af2fce1ad3e8">action_name</a>                <a class="code" href="structeosio_1_1action.html#a70afd7e77ad5c1b61a0bb8c748962015">name</a>;</div><div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="structeosio_1_1action.html#ab561bf311e71a6a07c09d727fb80ef0d">  103</a></span>&#160;      <a class="code" href="classeosio_1_1vector.html">vector&lt;permission_level&gt;</a>   <a class="code" href="structeosio_1_1action.html#ab561bf311e71a6a07c09d727fb80ef0d">authorization</a>;</div><div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="structeosio_1_1action.html#a9458cbd9bd544705512782182f1f997c">  104</a></span>&#160;      <a class="code" href="classeosio_1_1vector.html">bytes</a>                      <a class="code" href="structeosio_1_1action.html#a9458cbd9bd544705512782182f1f997c">data</a>;</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;      <a class="code" href="structeosio_1_1action.html">action</a>() = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;      <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Action&gt;</div><div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="structeosio_1_1action.html#ac4fa6584567d8c5a24c9eb3254c6ad80">  113</a></span>&#160;      <a class="code" href="structeosio_1_1action.html#ac4fa6584567d8c5a24c9eb3254c6ad80">action</a>( <a class="code" href="classeosio_1_1vector.html">vector&lt;permission_level&gt;</a>&amp;&amp; auth, <span class="keyword">const</span> Action&amp; value ) {</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;         account       = <a class="code" href="namespacedice.html#ae09b3a3f877447164f939f485592fc91">Action::get_account</a>();</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;         name          = Action::get_name();</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;         authorization = <a class="code" href="namespaceeosio.html#af29f4c3b46ef396883a8ba57c534a808">move</a>(auth);</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;         data          = <a class="code" href="namespaceeosio_1_1raw.html#a57bce67f0c5a31a944d454b8e6eda4b8">raw::pack</a>(value);</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;      }</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;      <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Action&gt;</div><div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="structeosio_1_1action.html#a38ac83086a7f7250e65453aaa29e2b45">  126</a></span>&#160;      <a class="code" href="structeosio_1_1action.html#a38ac83086a7f7250e65453aaa29e2b45">action</a>( <span class="keyword">const</span> <a class="code" href="structeosio_1_1permission__level.html">permission_level</a>&amp; auth, <span class="keyword">const</span> Action&amp; value )</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;      :authorization(1,auth) {</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;         account       = <a class="code" href="namespacedice.html#ae09b3a3f877447164f939f485592fc91">Action::get_account</a>();</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;         name          = Action::get_name();</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;         data          = <a class="code" href="namespaceeosio_1_1raw.html#a57bce67f0c5a31a944d454b8e6eda4b8">raw::pack</a>(value);</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;      }</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;      <span class="keyword">template</span>&lt;<span class="keyword">typename</span> DataStream&gt;</div><div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="structeosio_1_1action.html#a06395e5bc63a445bd9670e7dfd4238aa">  134</a></span>&#160;      <span class="keyword">friend</span> DataStream&amp; <a class="code" href="structeosio_1_1permission__level.html#a6f54c5a0770819eb7575df7810b3535d">operator &lt;&lt; </a>( DataStream&amp; ds, <span class="keyword">const</span> <a class="code" href="structeosio_1_1action.html">action</a>&amp; a ){</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;         ds &lt;&lt; a.<a class="code" href="structeosio_1_1action.html#a0294f981aa61b546ea82785af0a4a043">account</a> &lt;&lt; a.<a class="code" href="structeosio_1_1action.html#a70afd7e77ad5c1b61a0bb8c748962015">name</a>;</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;         <a class="code" href="namespaceeosio_1_1raw.html#a57bce67f0c5a31a944d454b8e6eda4b8">raw::pack</a>(ds, a.<a class="code" href="structeosio_1_1action.html#ab561bf311e71a6a07c09d727fb80ef0d">authorization</a>);</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;         <a class="code" href="namespaceeosio_1_1raw.html#a57bce67f0c5a31a944d454b8e6eda4b8">raw::pack</a>(ds, a.<a class="code" href="structeosio_1_1action.html#a9458cbd9bd544705512782182f1f997c">data</a>);</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;         <span class="keywordflow">return</span> ds;</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;      }</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;      <span class="keyword">template</span>&lt;<span class="keyword">typename</span> DataStream&gt;</div><div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="structeosio_1_1action.html#a85e13ef7c1db29398bcd93a5b6a49783">  142</a></span>&#160;      <span class="keyword">friend</span> DataStream&amp; <a class="code" href="structeosio_1_1permission__level.html#afed7f46182bb7f971ee4591be314224b">operator &gt;&gt; </a>( DataStream&amp; ds,  <a class="code" href="structeosio_1_1action.html">action</a>&amp; a ){</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;         ds &gt;&gt; a.<a class="code" href="structeosio_1_1action.html#a0294f981aa61b546ea82785af0a4a043">account</a> &gt;&gt; a.<a class="code" href="structeosio_1_1action.html#a70afd7e77ad5c1b61a0bb8c748962015">name</a>;</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;         <a class="code" href="namespaceeosio_1_1raw.html#ab1d3be0baf9bbbf0977000e24a3bec92">raw::unpack</a>(ds, a.<a class="code" href="structeosio_1_1action.html#ab561bf311e71a6a07c09d727fb80ef0d">authorization</a>);</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;         <a class="code" href="namespaceeosio_1_1raw.html#ab1d3be0baf9bbbf0977000e24a3bec92">raw::unpack</a>(ds, a.<a class="code" href="structeosio_1_1action.html#a9458cbd9bd544705512782182f1f997c">data</a>);</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;         <span class="keywordflow">return</span> ds;</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;      }</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;</div><div class="line"><a name="l00149"></a><span class="lineno"><a class="line" href="structeosio_1_1action.html#a447f36a63208c2d138b7109b3e13e55f">  149</a></span>&#160;      <span class="keywordtype">void</span> <a class="code" href="structeosio_1_1action.html#a447f36a63208c2d138b7109b3e13e55f">send</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;         <span class="keyword">auto</span> serialize = <a class="code" href="namespaceeosio_1_1raw.html#a57bce67f0c5a31a944d454b8e6eda4b8">raw::pack</a>(*<span class="keyword">this</span>);</div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;         <a class="code" href="group__actioncapi.html#gada68da99a95a5b25e9f5d43af255c63e">::send_inline</a>(serialize.data(), serialize.size());</div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;      }</div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;   };</div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;   <span class="keyword">template</span>&lt;u<span class="keywordtype">int</span>64_t Account, u<span class="keywordtype">int</span>64_t Name&gt;</div><div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="structeosio_1_1action__meta.html">  156</a></span>&#160;   <span class="keyword">struct </span><a class="code" href="structeosio_1_1action__meta.html">action_meta</a> {</div><div class="line"><a name="l00157"></a><span class="lineno"><a class="line" href="structeosio_1_1action__meta.html#ae16a119b10904e8adce5763b9bcc1906">  157</a></span>&#160;      <span class="keyword">static</span> <a class="code" href="group__types.html#gaaa5d1cd013383c889537491c3cfd9aad">uint64_t</a> <a class="code" href="structeosio_1_1action__meta.html#ae16a119b10904e8adce5763b9bcc1906">get_account</a>() { <span class="keywordflow">return</span> Account; }</div><div class="line"><a name="l00158"></a><span class="lineno"><a class="line" href="structeosio_1_1action__meta.html#a2db7bee8796ed90d1fcec8aa65a72192">  158</a></span>&#160;      <span class="keyword">static</span> <a class="code" href="group__types.html#gaaa5d1cd013383c889537491c3cfd9aad">uint64_t</a> <a class="code" href="structeosio_1_1action__meta.html#a2db7bee8796ed90d1fcec8aa65a72192">get_name</a>()  { <span class="keywordflow">return</span> Name; }</div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;   };</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;</div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;</div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;} <span class="comment">// namespace eosio</span></div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;<a class="code" href="reflect_8hpp.html#aa532922cd1c727af2a18a36f944afcc0">EOSLIB_REFLECT</a>( <a class="code" href="structeosio_1_1permission__level.html">eosio::permission_level</a>, (<a class="code" href="structeosio_1_1permission__level.html#aebfedbe1dd4d2f2836d8851ef510af59">actor</a>)(<a class="code" href="structeosio_1_1permission__level.html#a60acff25628eb7c1bdfe2ca17c3ec112">permission</a>) )</div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;<a class="code" href="reflect_8hpp.html#aa532922cd1c727af2a18a36f944afcc0">EOSLIB_REFLECT</a>( <a class="code" href="structeosio_1_1action.html">eosio::action</a>, (<a class="code" href="structaccount.html">account</a>)(<a class="code" href="structeosio_1_1name.html">name</a>)(authorization)(data) )</div><div class="ttc" id="structeosio_1_1action_html_ab561bf311e71a6a07c09d727fb80ef0d"><div class="ttname"><a href="structeosio_1_1action.html#ab561bf311e71a6a07c09d727fb80ef0d">eosio::action::authorization</a></div><div class="ttdeci">vector&lt; permission_level &gt; authorization</div><div class="ttdef"><b>Definition:</b> action.hpp:103</div></div>
<div class="ttc" id="namespaceeosio_html"><div class="ttname"><a href="namespaceeosio.html">eosio</a></div><div class="ttdoc">Used to forward declare raw functions. </div><div class="ttdef"><b>Definition:</b> account.hpp:12</div></div>
<div class="ttc" id="group__systemcapi_html_gae2a6ebaf48fe7c69f847ae18f109d09a"><div class="ttname"><a href="group__systemcapi.html#gae2a6ebaf48fe7c69f847ae18f109d09a">assert</a></div><div class="ttdeci">void assert(uint32_t test, const char *cstr)</div><div class="ttdoc">Aborts processing of this action and unwinds all pending changes. </div></div>
<div class="ttc" id="raw_8hpp_html"><div class="ttname"><a href="raw_8hpp.html">raw.hpp</a></div></div>
<div class="ttc" id="namespacedice_html_ac6fcf433d5a29141110b932a34f28383"><div class="ttname"><a href="namespacedice.html#ac6fcf433d5a29141110b932a34f28383">dice::accounts</a></div><div class="ttdeci">eosio::table&lt; N(dice), N(dice), N(account), account, uint64_t &gt; accounts</div><div class="ttdef"><b>Definition:</b> dice.hpp:84</div></div>
<div class="ttc" id="structaccount_html"><div class="ttname"><a href="structaccount.html">account</a></div><div class="ttdef"><b>Definition:</b> social.cpp:43</div></div>
<div class="ttc" id="group__types_html_ga3b44deb4b3b8d6ebab339d1263692117"><div class="ttname"><a href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a></div><div class="ttdeci">uint64_t account_name</div><div class="ttdef"><b>Definition:</b> types.h:35</div></div>
<div class="ttc" id="group__types_html_gaaa5d1cd013383c889537491c3cfd9aad"><div class="ttname"><a href="group__types.html#gaaa5d1cd013383c889537491c3cfd9aad">uint64_t</a></div><div class="ttdeci">unsigned long long uint64_t</div><div class="ttdef"><b>Definition:</b> types.h:18</div></div>
<div class="ttc" id="namespaceeosio_1_1raw_html_a57bce67f0c5a31a944d454b8e6eda4b8"><div class="ttname"><a href="namespaceeosio_1_1raw.html#a57bce67f0c5a31a944d454b8e6eda4b8">eosio::raw::pack</a></div><div class="ttdeci">void pack(Stream &amp;ds, const T &amp;t)</div><div class="ttdef"><b>Definition:</b> raw.hpp:20</div></div>
<div class="ttc" id="group__actioncapi_html_gadd0552a97de236e0c7af3ef2dd909c2a"><div class="ttname"><a href="group__actioncapi.html#gadd0552a97de236e0c7af3ef2dd909c2a">action_size</a></div><div class="ttdeci">uint32_t action_size()</div><div class="ttdoc">Get the length of current action&amp;#39;s data field. </div></div>
<div class="ttc" id="structeosio_1_1action_html"><div class="ttname"><a href="structeosio_1_1action.html">eosio::action</a></div><div class="ttdef"><b>Definition:</b> action.hpp:100</div></div>
<div class="ttc" id="structeosio_1_1permission__level_html_a546e2f82b781fb528a31e5581a31b673"><div class="ttname"><a href="structeosio_1_1permission__level.html#a546e2f82b781fb528a31e5581a31b673">eosio::permission_level::permission_level</a></div><div class="ttdeci">permission_level(account_name a, permission_name p)</div><div class="ttdef"><b>Definition:</b> action.hpp:78</div></div>
<div class="ttc" id="structeosio_1_1action_html_a9458cbd9bd544705512782182f1f997c"><div class="ttname"><a href="structeosio_1_1action.html#a9458cbd9bd544705512782182f1f997c">eosio::action::data</a></div><div class="ttdeci">bytes data</div><div class="ttdef"><b>Definition:</b> action.hpp:104</div></div>
<div class="ttc" id="namespacedice_html_ae09b3a3f877447164f939f485592fc91"><div class="ttname"><a href="namespacedice.html#ae09b3a3f877447164f939f485592fc91">dice::get_account</a></div><div class="ttdeci">account get_account(account_name owner)</div><div class="ttdef"><b>Definition:</b> dice.hpp:88</div></div>
<div class="ttc" id="action_8h_html"><div class="ttname"><a href="action_8h.html">action.h</a></div></div>
<div class="ttc" id="group__actioncapi_html_gaaa8e07b94cea97bd0b6bef4c7cf64422"><div class="ttname"><a href="group__actioncapi.html#gaaa8e07b94cea97bd0b6bef4c7cf64422">read_action</a></div><div class="ttdeci">uint32_t read_action(void *msg, uint32_t len)</div><div class="ttdoc">Copy current action to the specified location. </div></div>
<div class="ttc" id="structeosio_1_1permission__level_html"><div class="ttname"><a href="structeosio_1_1permission__level.html">eosio::permission_level</a></div><div class="ttdef"><b>Definition:</b> action.hpp:77</div></div>
<div class="ttc" id="structeosio_1_1action_html_ac4fa6584567d8c5a24c9eb3254c6ad80"><div class="ttname"><a href="structeosio_1_1action.html#ac4fa6584567d8c5a24c9eb3254c6ad80">eosio::action::action</a></div><div class="ttdeci">action(vector&lt; permission_level &gt; &amp;&amp;auth, const Action &amp;value)</div><div class="ttdef"><b>Definition:</b> action.hpp:113</div></div>
<div class="ttc" id="structeosio_1_1permission__level_html_afed7f46182bb7f971ee4591be314224b"><div class="ttname"><a href="structeosio_1_1permission__level.html#afed7f46182bb7f971ee4591be314224b">eosio::permission_level::operator&gt;&gt;</a></div><div class="ttdeci">friend DataStream &amp; operator&gt;&gt;(DataStream &amp;ds, permission_level &amp;a)</div><div class="ttdef"><b>Definition:</b> action.hpp:90</div></div>
<div class="ttc" id="structeosio_1_1action_html_a38ac83086a7f7250e65453aaa29e2b45"><div class="ttname"><a href="structeosio_1_1action.html#a38ac83086a7f7250e65453aaa29e2b45">eosio::action::action</a></div><div class="ttdeci">action(const permission_level &amp;auth, const Action &amp;value)</div><div class="ttdef"><b>Definition:</b> action.hpp:126</div></div>
<div class="ttc" id="structeosio_1_1action__meta_html_ae16a119b10904e8adce5763b9bcc1906"><div class="ttname"><a href="structeosio_1_1action__meta.html#ae16a119b10904e8adce5763b9bcc1906">eosio::action_meta::get_account</a></div><div class="ttdeci">static uint64_t get_account()</div><div class="ttdef"><b>Definition:</b> action.hpp:157</div></div>
<div class="ttc" id="classeosio_1_1vector_html"><div class="ttname"><a href="classeosio_1_1vector.html">eosio::vector</a></div><div class="ttdef"><b>Definition:</b> vector.hpp:12</div></div>
<div class="ttc" id="group__actioncppapi_html_ga8d2d8ca22e484fab7dbfe99cc8564e04"><div class="ttname"><a href="group__actioncppapi.html#ga8d2d8ca22e484fab7dbfe99cc8564e04">eosio::require_recipient</a></div><div class="ttdeci">void require_recipient(account_name name, accounts... remaining_accounts)</div><div class="ttdoc">Verify specified accounts exist in the set of notified accounts. </div><div class="ttdef"><b>Definition:</b> action.hpp:72</div></div>
<div class="ttc" id="group__actioncppapi_html_gacc8aeec52cf63058dc2b3cc44ac7495a"><div class="ttname"><a href="group__actioncppapi.html#gacc8aeec52cf63058dc2b3cc44ac7495a">eosio::current_action</a></div><div class="ttdeci">T current_action()</div><div class="ttdoc">Interpret the action body as type T. </div><div class="ttdef"><b>Definition:</b> action.hpp:39</div></div>
<div class="ttc" id="structeosio_1_1action_html_a70afd7e77ad5c1b61a0bb8c748962015"><div class="ttname"><a href="structeosio_1_1action.html#a70afd7e77ad5c1b61a0bb8c748962015">eosio::action::name</a></div><div class="ttdeci">action_name name</div><div class="ttdef"><b>Definition:</b> action.hpp:102</div></div>
<div class="ttc" id="group__actioncapi_html_gab1e668e93ac1f94421743ed79edffb26"><div class="ttname"><a href="group__actioncapi.html#gab1e668e93ac1f94421743ed79edffb26">require_auth</a></div><div class="ttdeci">void require_auth(account_name name)</div><div class="ttdoc">Verify specified account exists in the set of provided auths. </div></div>
<div class="ttc" id="structeosio_1_1permission__level_html_a60acff25628eb7c1bdfe2ca17c3ec112"><div class="ttname"><a href="structeosio_1_1permission__level.html#a60acff25628eb7c1bdfe2ca17c3ec112">eosio::permission_level::permission</a></div><div class="ttdeci">permission_name permission</div><div class="ttdef"><b>Definition:</b> action.hpp:82</div></div>
<div class="ttc" id="structeosio_1_1action_html_a447f36a63208c2d138b7109b3e13e55f"><div class="ttname"><a href="structeosio_1_1action.html#a447f36a63208c2d138b7109b3e13e55f">eosio::action::send</a></div><div class="ttdeci">void send() const</div><div class="ttdef"><b>Definition:</b> action.hpp:149</div></div>
<div class="ttc" id="structeosio_1_1action_html_a0294f981aa61b546ea82785af0a4a043"><div class="ttname"><a href="structeosio_1_1action.html#a0294f981aa61b546ea82785af0a4a043">eosio::action::account</a></div><div class="ttdeci">account_name account</div><div class="ttdef"><b>Definition:</b> action.hpp:101</div></div>
<div class="ttc" id="structeosio_1_1name_html"><div class="ttname"><a href="structeosio_1_1name.html">eosio::name</a></div><div class="ttdoc">wraps a uint64_t to ensure it is only passed to methods that expect a Name </div><div class="ttdef"><b>Definition:</b> types.hpp:73</div></div>
<div class="ttc" id="structeosio_1_1permission__level_html_a80e38737c6e727a27e9ff7a195f74d5d"><div class="ttname"><a href="structeosio_1_1permission__level.html#a80e38737c6e727a27e9ff7a195f74d5d">eosio::permission_level::permission_level</a></div><div class="ttdeci">permission_level()</div><div class="ttdef"><b>Definition:</b> action.hpp:79</div></div>
<div class="ttc" id="group__actioncapi_html_gae232893c733f02b94dbb70fae39d19f7"><div class="ttname"><a href="group__actioncapi.html#gae232893c733f02b94dbb70fae39d19f7">require_recipient</a></div><div class="ttdeci">void require_recipient(account_name name)</div><div class="ttdoc">Add the specified account to set of accounts to be notified. </div></div>
<div class="ttc" id="group__actioncppapi_html_ga262f69cf199078188ece68da422c9987"><div class="ttname"><a href="group__actioncppapi.html#ga262f69cf199078188ece68da422c9987">eosio::unpack_action</a></div><div class="ttdeci">T unpack_action()</div><div class="ttdef"><b>Definition:</b> action.hpp:47</div></div>
<div class="ttc" id="structeosio_1_1permission__level_html_aebfedbe1dd4d2f2836d8851ef510af59"><div class="ttname"><a href="structeosio_1_1permission__level.html#aebfedbe1dd4d2f2836d8851ef510af59">eosio::permission_level::actor</a></div><div class="ttdeci">account_name actor</div><div class="ttdef"><b>Definition:</b> action.hpp:81</div></div>
<div class="ttc" id="structeosio_1_1action__meta_html"><div class="ttname"><a href="structeosio_1_1action__meta.html">eosio::action_meta</a></div><div class="ttdef"><b>Definition:</b> action.hpp:156</div></div>
<div class="ttc" id="structeosio_1_1permission__level_html_a6f54c5a0770819eb7575df7810b3535d"><div class="ttname"><a href="structeosio_1_1permission__level.html#a6f54c5a0770819eb7575df7810b3535d">eosio::permission_level::operator&lt;&lt;</a></div><div class="ttdeci">friend DataStream &amp; operator&lt;&lt;(DataStream &amp;ds, const permission_level &amp;a)</div><div class="ttdef"><b>Definition:</b> action.hpp:85</div></div>
<div class="ttc" id="structeosio_1_1action__meta_html_a2db7bee8796ed90d1fcec8aa65a72192"><div class="ttname"><a href="structeosio_1_1action__meta.html#a2db7bee8796ed90d1fcec8aa65a72192">eosio::action_meta::get_name</a></div><div class="ttdeci">static uint64_t get_name()</div><div class="ttdef"><b>Definition:</b> action.hpp:158</div></div>
<div class="ttc" id="group__types_html_ga4a16baef1413dc2ec44666f6cc85adb1"><div class="ttname"><a href="group__types.html#ga4a16baef1413dc2ec44666f6cc85adb1">permission_name</a></div><div class="ttdeci">uint64_t permission_name</div><div class="ttdef"><b>Definition:</b> types.h:36</div></div>
<div class="ttc" id="group__actioncapi_html_gada68da99a95a5b25e9f5d43af255c63e"><div class="ttname"><a href="group__actioncapi.html#gada68da99a95a5b25e9f5d43af255c63e">send_inline</a></div><div class="ttdeci">void send_inline(char *serialized_action, size_t size)</div></div>
<div class="ttc" id="namespaceeosio_html_af29f4c3b46ef396883a8ba57c534a808"><div class="ttname"><a href="namespaceeosio.html#af29f4c3b46ef396883a8ba57c534a808">eosio::move</a></div><div class="ttdeci">remove_reference&lt; T &gt;::type &amp;&amp; move(T &amp;&amp;arg)</div><div class="ttdef"><b>Definition:</b> utility.hpp:10</div></div>
<div class="ttc" id="reflect_8hpp_html_aa532922cd1c727af2a18a36f944afcc0"><div class="ttname"><a href="reflect_8hpp.html#aa532922cd1c727af2a18a36f944afcc0">EOSLIB_REFLECT</a></div><div class="ttdeci">#define EOSLIB_REFLECT(TYPE, MEMBERS)</div><div class="ttdoc">Specializes eosio::reflector for TYPE. </div><div class="ttdef"><b>Definition:</b> reflect.hpp:77</div></div>
<div class="ttc" id="group__types_html_gab0390a1836d20bbbb735af2fce1ad3e8"><div class="ttname"><a href="group__types.html#gab0390a1836d20bbbb735af2fce1ad3e8">action_name</a></div><div class="ttdeci">uint64_t action_name</div><div class="ttdef"><b>Definition:</b> types.h:41</div></div>
<div class="ttc" id="namespaceeosio_1_1raw_html_ab1d3be0baf9bbbf0977000e24a3bec92"><div class="ttname"><a href="namespaceeosio_1_1raw.html#ab1d3be0baf9bbbf0977000e24a3bec92">eosio::raw::unpack</a></div><div class="ttdeci">void unpack(Stream &amp;ds, T &amp;t)</div><div class="ttdef"><b>Definition:</b> raw.hpp:27</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
